You can define several special purpose functions in your Class Module in addition to the User
Public Function UFInitialize () As Long Public Function UFTerminate () As Long Public Sub UFStartJob (job As Long) Public Sub UFEndJob (job As Long)
Be sure to define the functions in your code exactly as they appear above. If not defined correctly, they will be ignored by Crystal Reports. These functions are completely optional when creating your Visual Basic Automation Server. They are provided to assist you with the design of your User
This function is called just after the DLL is loaded into memory. Use this function to handle one
Return a value of 0 (zero) to indicate successful initialization. Any non
This function is called just before the DLL is unloaded from memory. Use this function to clean up any allocated memory or other data before unloading the DLL.
Return a value of 0 (zero) when finished cleaning up memory.
This procedure is called by Crystal Reports just before User
This procedure is called by Crystal Reports when the current job finishes, which happens when all pages of a report have been generated, before UFStartJob is called again, or before UFTerminate is called. This function also accepts the Crystal Reports job number as its only parameter. Handle any clean
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |